import request from '@/utils/request'

// 查询发票开票订单列表
export function listInvoiceOrder(query) {
  return request({
    url: '/ec/invoiceOrder/list',
    method: 'get',
    params: query
  })
}

// 查询发票开票订单详细
export function getInvoiceOrder(id) {
  return request({
    url: '/ec/invoiceOrder/' + id,
    method: 'get'
  })
}

// 新增发票开票订单
export function addInvoiceOrder(data) {
  return request({
    url: '/ec/invoiceOrder',
    method: 'post',
    data: data
  })
}

// 撤销发票开票订单
export function revokeInvoiceOrder(data) {
  return request({
    url: '/ec/invoiceOrder/revoke',
    method: 'post',
    data: data
  })
}

// 删除发票开票订单
export function delInvoiceOrder(id) {
  return request({
    url: '/ec/invoiceOrder/' + id,
    method: 'delete'
  })
}
